package cn.guet.eureka.client.girl.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Girl调用远程服务，Boy服务的客户端
 *
 * @author SAGITTAR
 */
@FeignClient(value = "eureka-client-boy", qualifier = "boyClient")
public interface IBoyClient {

    /**
     * 远程输出问候
     *
     * @param name
     * @return
     */
    @GetMapping(value = "/feign/{name}")
    String feign(@PathVariable(value = "name") String name);
}
